from django.db import models

import capabilities.models

class Blurb(models.Model):
    """
    A blurb on the site
    """
    author = capabilities.models.UserField()
    slug = models.SlugField(unique=True)
    html = models.BooleanField(default=True)
    body = models.TextField()
    published = models.DateTimeField(auto_now_add=True)
    updated = models.DateTimeField(auto_now=True)

    class Meta:
        ordering = ['slug']
    def __unicode__(self):
        return self.title